package com.denlaku.longan.service;

import com.denlaku.longan.index.IndexHolder;
import com.denlaku.longan.index.IndexQuery;
import org.apache.lucene.document.Document;

import java.util.List;

/**
 * @author tianx
 */
public interface IndexService {
    void index(IndexHolder holder);

    void delete(IndexQuery indexQuery);

    List<Document> search(IndexQuery indexQuery);
}
